package com.tianji.learning.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 笔记表
 * </p>
 *
 * @author author
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("learning_note")
@ApiModel(value="LearningNote对象", description="笔记表")
public class LearningNote implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键, 笔记id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "所属课程id")
    private Long courseId;

    @ApiModelProperty(value = "所属课程章id")
    private Long chapterId;

    @ApiModelProperty(value = "所属课程节id")
    private Long sectionId;

    @ApiModelProperty(value = "视频播放进度")
    private Long videoTime;

    @ApiModelProperty(value = "笔记内容")
    private String content;

    @ApiModelProperty(value = "点赞数量")
    private Long likeCount;

    @ApiModelProperty(value = "是否私密,0非私密,1私密")
    private Boolean isPrivate;

    @ApiModelProperty(value = "是否有采集,0非采集,1采集")
    private Boolean isCollect;

    @ApiModelProperty(value = "引用人id")
    private Long targetId;

    @ApiModelProperty(value = "引用次数")
    private Integer collectCount;

    @ApiModelProperty(value = "管理端是否隐藏 0 非隐藏, 1隐藏")
    private Boolean adminPrivate;

    @ApiModelProperty(value = "提问时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
